import java.util.ArrayList;
/**
 * Write a description of class universite here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class universite
{
    // instance variables - replace the example below with your own
    private int x;
    private String nom;
    private int num;
    private ArrayList<Etudiant> listEtu;

    /**
     * Constructor for objects of class universite
     */
    public universite(int num, String nom)
    {
        // initialise instance variables
        x = 0;
        this.num=num;
        this.nom=nom;
        listEtu=new ArrayList<Etudiant>();
    }

    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public int sampleMethod(int y)
    {
        // put your code here
        x+=y;
        return x + y;
    }
    
    public String addNom(String nom1){
        nom+=nom1;
        return nom+nom1;
    }
    
    public int addNum(int n1){
        num+=n1;
        return n1+num;
    }
    
    public void setNom(String n){
        nom=n;
    }
    
    public String getNom(){
        return nom;
    }
    
    public void setNum(int l){
        num=l;
    }
    
    public int getNum(){
        return num;
    }
    
    public void addEtu(Etudiant e){
        listEtu.add(e);
    }
    
    public Etudiant getEtu(int index){
        return listEtu.get(index);
    }
}
